package com.aegean.MonitorExamSYS.android.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.monitor.business.MonitorBusiness;
import com.aegean.MonitorExamSYS.monitor.component.MonitorValue;
import com.opensymphony.xwork2.ActionSupport;

@Controller("MonitorPositionInfoForAndroid")
@Scope("prototype")
public class MonitorPositionInfoForAndroid extends ActionSupport {
	@Resource
	MonitorBusiness business;
	private int pq_Id;// 考场资格Id
	private int person_Count;
	private List<MonitorValue> monitors;
	
	public int getPq_Id() {
		return pq_Id;
	}
	public void setPq_Id(int pq_Id) {
		this.pq_Id = pq_Id;
	}
	public int getPerson_Count() {
		return person_Count;
	}
	public void setPerson_Count(int person_Count) {
		this.person_Count = person_Count;
	}
	public List<MonitorValue> getMonitors() {
		return monitors;
	}
	public void setMonitors(List<MonitorValue> monitors) {
		this.monitors = monitors;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		person_Count = business.countOfExaminees(pq_Id);
		monitors = business.showMonitorValues(pq_Id);
		return SUCCESS;
	}
}
